<?php

use Illuminate\Database\Seeder;


class UserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {	
    	$date = [];
        //数据填充
        for($i = 0;$i<100;$i++)
        {
        	$arr['username'] = str_random(6);
        	$arr['password'] = Crypt::encrypt('123');
        	$arr['email'] = str_random(5)."@qq.com";
        	$arr['phone'] = str_random(11);
        	$time = date('Y-m-d H:i:s');
        	$arr['created_at'] = $time;
        	$arr['updated_at'] = $time;
            $arr['remember_token'] = str_random(60); 
        	$date[] =$arr; 
        }
        DB::table('users')-> insert($date);
    }
}
